package org.shuker.sqlsession;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ：Shuker
 * @date ：Created in 2022/6/6 11:48
 * @description：
 * @version:
 */
public interface SqlSession {
    public <E> List<E> selectList(String statementId, Object... param) throws Exception;

    public <T> T selectOne(String statementId, Object... param) throws Exception;

    public int add(String statementId, Object... param) throws Exception;

    public int update(String statementId, Object... param) throws Exception;

    public int delete(String statementId, Object... param) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);

    public void close() throws SQLException;
}
